]> dgit.raspbian.org Git - gnome-shell.git/commit
screenShield: Compute lock timeout fade duration using animation settings
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Fri, 4 Oct 2019 09:04:43 +0000 (11:04 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 16 Oct 2019 15:20:58 +0000 (15:20 +0000)
commitab6a629955d8bd3c004ec0eb21f57987f48ac655
tree71b03a47d2293c0cd523d08de65ca93ca35d9038
parent6cad2511876e716ab26d94dccfa5c3de173c68ae
screenShield: Compute lock timeout fade duration using animation settings

When the screen is marked as idle, we normally start a fading animation and
a timeout to finally lock the screen. This timeout is configured using the
fade time if no longer delay is set in settings.

However if animations are disabled or slowed-down/up, the fade time is
different from the STANDARD_FADE_TIME and so we might end up showing the
lock shield without actually locking for STANDARD_FADE_TIME in the disabled
or slowed-up animations case, or locking too early in case of slowed-down
animations.

So, just adjust the timeout time using the same logic of animations so that
this value is matching all the times.

Related to https://gitlab.gnome.org/GNOME/gnome-shell/issues/1744

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/749
js/ui/screenShield.js